﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Wq.Model;

namespace Wq.ManagerService.Entities
{
    /// <summary>
    /// 地区
    /// </summary>
    [TenantAttribute("manager")]
    [SugarTable("Wq_Region")]
    public class RegionInfo
    {
        /// <summary>
        /// Id
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        [SugarColumn(ColumnDescription = "名称")]
        public string Name { get; set; }
        /// <summary>
        /// 等级
        /// </summary>
        [SugarColumn(ColumnDescription = "等级")]
        public int Level { get; set; }
        /// <summary>
        /// 父级ID
        /// </summary>
        [SugarColumn(ColumnDescription = "父级ID")]
        public int ParentId { get; set; }
    }
}
